package com.zy1.stu_man.config;

import com.zy1.stu_man.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {
    @Bean(initMethod = "initUser",destroyMethod = "destroyUser")
    public User user(){
        return new User();
    }
}
